            <% content_for :sidebar do -%>
            <div class="side_box">
                <ul class="menu">
                    <li><%= image_tag("house_go.png", :align=>"absmiddle")%> <%= link_to "标签首页", tags_path %></li>
                    <% if !@district.nil? -%>  
                    <li><%= image_tag("house_go.png", :align=>"absmiddle")%> <%= link_to "返回#{@district.title}", district_path(@district) %></li>
                    <% end -%>
                    <% if !@community.nil? -%>  
                    <li><%= image_tag("house_go.png", :align=>"absmiddle")%> <%= link_to "返回#{@community.title}", community_path(@community.district, @community) %></li>
                    <% end -%>
                    <% if !@site.nil? -%>  
                    <li><%= image_tag("house_go.png", :align=>"absmiddle")%> <%= link_to "返回#{@site.title}", site_path(@site) %></li>
                    <% end -%>
                    <% if !@group.nil? -%>  
                    <li><%= image_tag("house_go.png", :align=>"absmiddle")%> <%= link_to "返回#{@group.title}", group_path(@group) %></li>
                    <% end -%>
                </ul>
            </div>
            
            <% if @related_tags.size > 0 -%>
            <div class="tab">
  		<h3>相关的标签</h3>
	    </div>
	    <div class="clear">
		<% tag_cloud @related_tags, %w(nube1 nube2 nube3 nube4 nube5) do |name, css_class| -%>
                    <span class="<%=css_class%>">
                        <% if !@district.nil? -%>  
                            <%= link_to name, tag_path(name, :type => 'district', :type_id => @district) %>
                        <% elsif !@community.nil? -%>  
                            <%= link_to name, tag_path(name, :type => 'community', :type_id => @community) %>
                        <% elsif !@site.nil? -%>  
                            <%= link_to name, tag_path(name, :type => 'site', :type_id => @site) %>
                        <% elsif !@group.nil? -%>  
                            <%= link_to name, tag_path(name, :type => 'group', :type_id => @group)%>
                        <% else -%>
                            <%= link_to name, tag_path(name) %>
                        <% end -%>
                    </span>
                <% end -%>
	    </div>
            <% end -%>
	    <% end -%>
            
            <% content_for :navbar do -%>
            <div class="box">
                <img class="map" align="absmiddle" alt="You are here" src="/images/map.png"/>
                当前位置 
                » <%= link_to "您这儿", :controller =>'browse', :action => 'index' %> 
                <% if !@district.nil? -%>
                » <%= link_to "#{@district.title}", district_path(@district) %>
                <% end -%>
                <% if !@community.nil? -%>
                » <%= link_to "#{@community.district.title}", district_path(@community.district) %>
                » <%= link_to "#{@community.title}", community_path(@community.district, @community) %>
                <% end -%>
                <% if !@site.nil? -%>
                » <%= link_to "#{@site.title}", site_path(@site) %>
                <% end -%>
                <% if !@group.nil? -%>
                » <%= link_to "#{@group.title}", group_path(@group) %>
                <% end -%>
                » <%= link_to "标签", tags_path %>
                » <%= params[:id]%>
            </div>
            <% end -%>
            <div class="box">
                <%=render :partial => 'shared/posts', :object => @posts%>
            </div>


